BIN=game.exe
CC=g++
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)
LFLAGS=-o
FLAGS=-c
RM=rm -f



$(BIN):$(OBJ)
	@$(CC) $(LFLAGS) $@ $^
	@echo "链接 ... $^ 去 $@"

#iconv -f GBK -t UTF-8 ____ -o aim___
%.o:%.cpp
	@$(CC) $(FLAGS) $<
	@echo "完成 ... $< 去 $@"

.PHONY:clean
clean:
	$(RM) $(OBJ) $(BIN)
